package com.simon.mengkou.ui.dialog;

import android.content.Context;
import android.widget.GridView;

import com.ouertech.android.agm.lib.ui.base.BaseDialog;
import com.simon.mengkou.R;
import com.simon.mengkou.ui.adapter.SignAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xiazhenshui on 16/6/8.
 * 签到
 */

public class SignDialog extends BaseDialog {
    private SignAdapter mAdapter;

    public SignDialog(Context context) {
        super(context);
    }

    @Override
    protected void initLayout() {
        setContentView(R.layout.dialog_sign);
    }

    @Override
    protected void initViews() {
        GridView gvSign = (GridView)findViewById(R.id.sign_id_grid);

        mAdapter = new SignAdapter(mContext);
        gvSign.setAdapter(mAdapter);

        List<String> strs = new ArrayList<String>();
        for(int i=0; i<20; i++) {
            strs.add("strs" + i);
        }
        mAdapter.setList(strs);

        setCanceledOnTouchOutside(true);
    }
}
